﻿using Orchard.UI.Resources;

namespace NineSeas
{
    public class ResourceManifest : IResourceManifestProvider
    {
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            // Create and add a new manifest
            var manifest = builder.Add();

            manifest.DefineStyle("PmpNetwork.Wiki").SetUrl("wiki.css");
            manifest.DefineStyle("PmpNetwork.Wiki.Quiz").SetUrl("wiki.quiz.css");
            manifest.DefineStyle("PmpNetwork.WikiArticle.Question").SetUrl("admin.questions.css");
            manifest.DefineStyle("PmpNetwork.FancyBox").SetUrl("jquery.fancybox.css");

            // admin

            // scripts
            manifest.DefineScript("PmpNetwork.WikiArticle.Question").SetUrl("admin.questions.js").SetDependencies("jQuery");
            manifest.DefineScript("PmpNetwork.WikiArticle.Edit").SetUrl("wikiArticle.edit.js").SetDependencies("jQuery");
            manifest.DefineScript("PmpNetwork.FancyBox").SetUrl("jquery.fancybox.js").SetDependencies("jQuery");
            manifest.DefineScript("PmpNetwork.JsTree").SetUrl("jquery.jstree.js").SetDependencies("jQuery");
        }
    }
}